<%@ Page Language="C#" MasterPageFile="~/app-frame.master" AutoEventWireup="true" CodeFile="DashboardDesigner.aspx.cs" Inherits="Default2" Title="Untitled Page" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>

<%--<%@ Register TagPrefix="igtbl" Namespace="Infragistics.WebUI.UltraWebGrid" Assembly="Infragistics2.WebUI.UltraWebGrid.v10.1, Version=10.1.20101.1011, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb" %>

<%@ Register TagPrefix="igGauge" Namespace="Infragistics.WebUI.UltraWebGauge" Assembly="Infragistics2.WebUI.UltraWebGauge.v10.1, Version=10.1.20101.1011, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb" %>

<%@ Register TagPrefix="igchart" Namespace="Infragistics.WebUI.UltraWebChart" Assembly="Infragistics2.WebUI.UltraWebChart.v10.1, Version=10.1.20101.1011, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb" %>
--%>
<%--<%@ Register TagPrefix="igtbl" Namespace="Infragistics.WebUI.UltraWebGrid" Assembly="Infragistics2.WebUI.UltraWebGrid.v10.1, Version=10.1.20101.2195, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb" %>

<%@ Register TagPrefix="igGauge" Namespace="Infragistics.WebUI.UltraWebGauge" Assembly="Infragistics2.WebUI.UltraWebGauge.v10.1, Version=10.1.20101.2195, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb" %>

<%@ Register TagPrefix="igchart" Namespace="Infragistics.WebUI.UltraWebChart" Assembly="Infragistics2.WebUI.UltraWebChart.v10.1, Version=10.1.20101.2195, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb" %>
--%>

<%@ Register TagPrefix="igtbl" Namespace="Infragistics.WebUI.UltraWebGrid" Assembly="Infragistics4.WebUI.UltraWebGrid.v10.3, Version=10.3.20103.2217, Culture=neutral, PublicKeyToken=7DD5C3163F2CD0CB" %>
<%@ Register TagPrefix="igchart" Namespace="Infragistics.WebUI.UltraWebChart" Assembly="Infragistics4.WebUI.UltraWebChart.v10.3, Version=10.3.20103.2217, Culture=neutral, PublicKeyToken=7DD5C3163F2CD0CB" %>
<%@ Register TagPrefix="igGauge" Namespace="Infragistics.WebUI.UltraWebGauge" Assembly="Infragistics4.WebUI.UltraWebGauge.v10.3, Version=10.3.20103.2217, Culture=neutral, PublicKeyToken=7DD5C3163F2CD0CB" %>


<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder3" Runat="Server">
    <%--<script language="JavaScript" type="text/javascript" src="scripts/commonscript.js"></script>--%>
    
    <script type="text/javascript" src="scripts/dashboardchartresize.js" language="javascript"></script>
    <script type="text/javascript" src="scripts/Dashboard.js" language="javascript"></script> <%-- Added by 'Imran Gani' on 20-Dec-2012 --%>
    
    <table border="0" cellpadding="0" cellspacing="0" style="width: 100%">
        <tr>
            <td>
                <asp:Label ID="lblmessage" runat="server" CssClass="controlFont"></asp:Label></td>
        </tr>
        <tr>
            <td style="width: 100%">
            <asp:Panel ID="pnlButtonsTop" runat="server" Width="100%">
        <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
        <td class="Dynamic_PageHeaderRow" style="width:33%"><asp:Label ID="lblheader" runat="server" Text="Dashboard Layout Designer"></asp:Label></td>
        <td class="displaygridbottom" style="width:34%" align="center">
        <asp:Button ID="btnSaveTop" runat="server" Text="Save" OnClick="btnSaveTop_Click" OnClientClick="javascript:disableThis('ctl00_ContentPlaceHolder3_btnSave','Saving...'); return false;"    UseSubmitBehavior="false"  />
        <asp:Button ID="btnSaveNewTop" runat="server" Text="Save & Next" OnClick="btnSaveNewTop_Click" OnClientClick="javascript:disableThis('ctl00_ContentPlaceHolder3_btnSaveNew','Saving...');" UseSubmitBehavior="false"/>
        <asp:Button ID="btnUpdateTop" runat="server" Text="Save" OnClick="btnUpdateTop_Click" OnClientClick="javascript:disableThis('ctl00_ContentPlaceHolder3_btnUpdate','Saving...'); return false;"    UseSubmitBehavior="false" />
        <asp:Button ID="btnResetTop" runat="server" Text="Reset" OnClick="btnResetTop_Click" CausesValidation="false"/>
        </td>
        <td class="Dynamic_PageHeaderRow" style="width:33%"></td>
        </tr>
        </table>
        </asp:Panel>
                </td>
        </tr>
        <tr>
            <td>
            <asp:Panel ID="pnlHeader" runat="server" Width="100%">
                <table border="0" cellpadding="0" cellspacing="0" style="width: 100%">
                    <tr>
                        <td colspan="2" valign="top" id="td_Page_ToopTip" runat="server">
                        </td>
                    </tr>
                    <tr>
                        <td valign="top">
                            <asp:Label ID="Label1" runat="server" Text="Name" CssClass="controlLabelFont"></asp:Label></td>
                        <td valign="top">
                            <asp:TextBox ID="txt_id" runat="server" CssClass="controlFont" Width="175px" ToolTip="Name of the Dashboard"></asp:TextBox>
                                    <img alt="Required Field" src="Images/star.gif" />
                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txt_id"
                    Display="None" ErrorMessage="This is a required field."></asp:RequiredFieldValidator>
                    <cc1:validatorcalloutextender id="ValidatorCalloutExtender1" runat="server" highlightcssclass="maskInvalid"
                    targetcontrolid="RequiredFieldValidator1" warningiconimageurl="Images/warning_small.gif">
                    </cc1:validatorcalloutextender>
                            </td>
                    </tr>
                    <tr>
                        <td valign="top">
                            <asp:Label ID="Label2" runat="server" Text="Header" CssClass="controlLabelFont"></asp:Label></td>
                        <td valign="top">
                            <asp:TextBox ID="txt_title" runat="server" CssClass="controlFont" Width="175px" ToolTip="Text to be displayed in the header section of Dashboard"></asp:TextBox>
                                            <img alt="Required Field" src="Images/star.gif" />
                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txt_title"
                    Display="None" ErrorMessage="This is a required field."></asp:RequiredFieldValidator>
                    <cc1:validatorcalloutextender id="ValidatorCalloutExtender2" runat="server" highlightcssclass="maskInvalid"
                    targetcontrolid="RequiredFieldValidator2" warningiconimageurl="Images/warning_small.gif">
                    </cc1:validatorcalloutextender>
                            </td>
                    </tr>
                    <tr>
                        <td valign="top">
                            <asp:Label ID="Label3" runat="server" Text="Description" CssClass="controlLabelFont"></asp:Label></td>
                        <td valign="top">
                            <asp:TextBox ID="txt_desc" runat="server" CssClass="controlFont" Width="175px" Height="75px" TextMode="MultiLine" ToolTip="Description of the Dashboard"></asp:TextBox></td>
                    </tr>
                    <tr>
                        <td valign="top">
                            <asp:Label ID="Label4" runat="server" Text="Layout Style" CssClass="controlLabelFont"></asp:Label></td>
                        <td valign="top">
                            <asp:DropDownList ID="ddlLayoutStyle" runat="server" Width="175px" CssClass="controlFont" AutoPostBack="True" OnSelectedIndexChanged="ddlLayoutStyle_SelectedIndexChanged" ToolTip="Layout Style of Dashboard"></asp:DropDownList>
                            </td>
                    </tr>
                    <tr>
                        <td valign="top">
                            <asp:Label ID="Label5" runat="server" Text="Active" CssClass="controlLabelFont"></asp:Label></td>
                        <td valign="top">
                            <asp:CheckBox ID="ChkActive" runat="server" CssClass="controlFont" ToolTip="Active status of the Dashboard" /></td>
                    </tr>
                    <tr>
                        <td valign="top">
                            <asp:Label ID="Label6" runat="server" Text="Owner" CssClass="controlLabelFont"></asp:Label></td>
                        <td valign="top">
                            <asp:TextBox ID="txt_Owner" runat="server" CssClass="controlFont" Width="175px" ToolTip="Owner"></asp:TextBox>
                            <asp:HiddenField ID="hfowner" runat="server" />
                            <asp:Image ID="imgowner" runat="server" ImageUrl="~/Images/search.gif" CssClass="SearchPopup" ToolTip="Click here for Owner Lookup" />
                        </td>
                    </tr>
                </table>
                </asp:Panel>
                </td>
        </tr>
        <tr>
            <td>
            </td>
        </tr>
        <tr><td><asp:Panel ID="pnlSelectDashboards" runat="server">
        <table width="100%"><tr><td class="Grid_Header">
        <asp:Image ID="btnSelectDashboard" runat="server" ImageUrl="Images/collapse3.gif"  />
        <asp:Label ID="lblSelectDashboard" runat="server" Text="Select Widgets"></asp:Label>
            <%--<asp:Button ID="btnSelectDashboard" runat="server" Text="Select Dashboards" />--%>
            
        </td></tr>
        <tr>
        <td>
            <asp:Panel ID="PnlSelectDashboard" runat="server" Width="100%" BorderColor="lightgray" BorderWidth="1px">
                <table border="0">
                <tr><td colspan="6"></td></tr>
                    <tr>
                        <td>
                        </td>
                        <td>
                        <table><tr><td>    <asp:Label ID="lblavailable" runat="server" CssClass="controlLabelFont" Text="Available Widgets"></asp:Label></td></tr><tr><td><asp:ListBox ID="lstAvailableDashboards" runat="server" Height="150px" Width="250px" CssClass="controlFont" ToolTip="Available Widgets"></asp:ListBox></td></tr></table>
                            
                        </td>
                        <td>
                        <table>
                            <tr><td></td></tr>
                            <tr><td><asp:ImageButton ID="imgSelectAll" runat="server" ImageUrl="Images/last.gif" OnClick="imgSelectAll_Click" OnClientClick="javascript:UpdateOtherEvent();" CausesValidation="false" /></td></tr>
                            <tr><td><asp:ImageButton ID="imgSelect" runat="server" ImageUrl="Images/front.gif" OnClick="imgSelect_Click" OnClientClick="javascript:UpdateOtherEvent();" CausesValidation="false" /></td></tr>
                            <tr><td><asp:ImageButton ID="imgUnSelect" runat="server" ImageUrl="Images/back.gif" OnClick="imgUnSelect_Click"  OnClientClick="javascript:UpdateOtherEvent();" CausesValidation="false"/></td></tr>
                            <tr><td><asp:ImageButton ID="imgUnSelectAll" runat="server" ImageUrl="Images/first.gif" OnClick="imgUnSelectAll_Click" OnClientClick="javascript:UpdateOtherEvent();" CausesValidation="false" /></td></tr>
                            <tr><td></td></tr>
                        </table>
                        </td>
                        <td>
                        <table>
                        <tr>
                        <td><asp:Label ID="lblselected" runat="server" Text="Selected Widgets" CssClass="controlLabelFont"></asp:Label></td>
                        </tr>
                        <tr>
                        <td><asp:ListBox ID="lstSelectedDashboards" runat="server" Height="150px" Width="250px" CssClass="controlFont" ToolTip="Selected Widgets" onclick="javascript:return showWidgetProperties();"></asp:ListBox></td>
                        </tr>
                        </table>
                            
                        </td>
                        <td>
                        <table>
                        <tr><td></td></tr>
                        <tr><td><asp:ImageButton ID="imgUp" runat="server" ImageUrl="Images/up.gif" OnClick="imgUp_Click" OnClientClick="javascript:UpdateOtherEvent();" CausesValidation="false" /></td></tr>
                        <tr><td><asp:ImageButton ID="imgdown" runat="server" ImageUrl="Images/down.gif" OnClick="imgdown_Click" OnClientClick="javascript:UpdateOtherEvent();" CausesValidation="false"/></td></tr>
                        <tr><td></td></tr>
                        </table>
                        </td>
                        <td>
                        </td>
                        <td id="td_wdgSettings" valign="top" class="controlLabelFont" style="visibility:hidden;">&nbsp;
                        <asp:Label ID="lbl_wdgSettings" runat="server" Text="Widget Settings" CssClass="controlLabelFont"></asp:Label><br />
                        <div style="padding:3px;"></div>
                        <fieldset>
                            <table border="0" cellpadding="0" cellspacing="0">
                                <tr><td colspan="2"></td></tr>
                                <tr class="controlFont">
                                    <td style="white-space:nowrap;">Full View</td>
                                    <td><asp:CheckBox runat="server" ID="chkFullView" Text="" onclick="javascript:applyWidgetProperties();"/></td>
                                </tr> 
                                <tr class="controlFont">
                                    <td style="white-space:nowrap;">New Section</td>
                                    <td align="left"><asp:CheckBox runat="server" ID="chkNewSection" Text="" onclick="javascript:applyWidgetProperties();"/></td>
                                </tr> 
                                <tr class="controlFont">
                                    <td style="white-space:nowrap;">Widget Size</td>
                                    <td align="left"><asp:DropDownList runat="server" ID="ddlWidgetSize" CssClass="controlFont" onclick="javascript:applyWidgetProperties();"/></td>
                                </tr> 
                            </table>
                        </fieldset>
                        <div style="padding:3px;"></div>
                        </td>
                    </tr>
                    <tr>
                    <td></td>
                    <td></td>
                    <td></td>
                    <td style="text-align:right">
                        <%--<asp:Button ID="btnPreview" runat="server" Text="Preview Dashboard" OnClientClick="javascript:UpdateOtherEvent();" OnClick="btnPreview_Click" Visible="false" />--%></td>
                    <td></td>
                    <td></td>
                    </tr>
                    <tr><td colspan="6" ></td></tr>
                </table>
            </asp:Panel>
        </td>
        </tr></table>
        </asp:Panel></td></tr>
        <tr>
        <td style="width: 100%">
        <asp:Panel ID="pnlButtons" runat="server" Width="100%">
        <table width="100%" cellpadding="0" cellspacing="0" border="0">
            <tr style="padding-top:5px;">
                <td colspan="3" class="controlFont" style="font-size: 8pt; height:20px" valign="bottom">
                Fields marked with (<img src="images/star.gif" alt="required" />) are required.
                </td>
            </tr>
            <tr>
                <td colspan="3" id="tdcDefaultFields" runat="server" class="controlFont" style="font-size: 8pt;">
                </td>
            </tr>
        <tr>
        <td class="displaygridbottom" style="width:33%"></td>
        <td class="displaygridbottom" style="width:34%" align="center">
        <asp:Button ID="btnSave" runat="server" Text="Save" OnClick="btnSave_Click" UseSubmitBehavior="True" OnClientClick="javascript:disableThis('ctl00_ContentPlaceHolder3_btnSave','Saving...');" />
        <asp:Button ID="btnSaveNew" runat="server" Text="Save & Next" OnClick="btnSaveNew_Click" OnClientClick="javascript:disableThis('ctl00_ContentPlaceHolder3_btnSaveNew','Saving...');" UseSubmitBehavior="false"  />
        <asp:Button ID="btnUpdate" runat="server" Text="Save" OnClick="btnUpdate_Click" UseSubmitBehavior="True" OnClientClick="javascript:disableThis('ctl00_ContentPlaceHolder3_btnUpdate','Saving...');" />
        <asp:Button ID="btnReset" runat="server" Text="Reset" OnClick="btnReset_Click" UseSubmitBehavior="false" CausesValidation="false"/>
        <asp:Button ID="btnPreview" runat="server" Text="Preview" OnClientClick="javascript:UpdateOtherEvent();" OnClick="btnPreview_Click"/>
        </td>
        <td class="displaygridbottom" style="width:33%"></td>
        </tr>
        </table>
        </asp:Panel>
        </td>
        </tr>
        <tr><td id="td_space" runat="server" style="height:10px"></td></tr>
        <tr>
        
        <td id="td_dashboardHeader" runat="server" visible="false">
            <table border="0" cellpadding="3" cellspacing="0" style="width: 100%">
                <tr>
                    <td align="left" class="Dynamic_PageHeaderRow" id="td_db_header_view" runat="server">&nbsp;<asp:Label ID="lblDashboardHeader" runat="server" Text=""></asp:Label></td>
                    <td align="right" class="Dynamic_PageHeaderRow" style="text-align:right">
                    <a id="lnkDashboardList" runat="server" visible="false">Go to Dashboard List Page</a>
                    </td>
                </tr>
                <tr>
                    <td id="td_db_page_tooltip_view" runat="server" colspan="2">
                    </td>
                </tr>
            </table>
        </td>
        </tr>
        <%--<tr><td style="height:10px"></td></tr>--%>
        <tr>
            <td id="td_dashboard" runat="server">
            </td>
        </tr>
        <tr>
            <td>
                <asp:HiddenField ID="hfJsonWdgSettings" runat="server" />
                <asp:HiddenField ID="hfRowCount" runat="server" />
                <asp:HiddenField ID="hfColumnCount" runat="server" />
                <asp:HiddenField ID="hfafrowid" runat="server" />
                <asp:HiddenField ID="hfcreatedby" runat="server" />
                <asp:HiddenField ID="hfcreatedat" runat="server" />
                <asp:HiddenField ID="hfEventTriggered" runat="server" Value="0" />
                           <cc1:CollapsiblePanelExtender ID="CollapsiblePanelExtender1" runat="server" ExpandDirection="Horizontal" SuppressPostBack="True"
                                                TargetControlID="PnlSelectDashboard" Enabled="True" ExpandControlID="btnSelectDashboard" CollapseControlID="btnSelectDashboard" CollapsedImage="Images/expand3.gif" ExpandedImage="Images/collapse3.gif" ImageControlID="btnSelectDashboard">
                                            </cc1:CollapsiblePanelExtender>
                                            
                                            <%--<cc1:CollapsiblePanelExtender ID="CollapsiblePanelExtender2" runat="server" CollapseControlID="Image1"
                                                CollapsedImage="Images/expand2.gif" ExpandControlID="Image1" ExpandDirection="Horizontal"
                                                ExpandedImage="Images/collapsed2.gif" TargetControlID="Panel1" ExpandedSize="184" ImageControlID="ctl00_Image1" SuppressPostBack="false" Enabled="True">
                                            </cc1:CollapsiblePanelExtender>--%>
            </td>
        </tr>
    </table>
</asp:Content>

